package com.yssw.account.domain;

import com.yssw.common.annotation.Excel;
import com.yssw.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 财务子对象 account_item
 *
 * @author yssw
 * @date 2023-04-04
 */
public class AccountItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 表头编号
     */
    @Excel(name = "表头编号")
    private Long headerId;

    /**
     * 账户编号
     */
    @Excel(name = "账户编号")
    private Long accountId;

    /**
     * 收支项目Id
     */
    @Excel(name = "收支项目Id")
    private Long inOutItemId;

    /**
     * 单据编号
     */
    @Excel(name = "单据编号")
    private Long billId;

    /**
     * 应收欠款
     */
    @Excel(name = "应收欠款")
    private BigDecimal needDebt;

    /**
     * 已收欠款
     */
    @Excel(name = "已收欠款")
    private BigDecimal finishDebt;

    /**
     * 单项金额
     */
    @Excel(name = "单项金额")
    private BigDecimal eachAmount;

    /**
     * 删除标记，0未删除，1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setHeaderId(Long headerId) {
        this.headerId = headerId;
    }

    public Long getHeaderId() {
        return headerId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setInOutItemId(Long inOutItemId) {
        this.inOutItemId = inOutItemId;
    }

    public Long getInOutItemId() {
        return inOutItemId;
    }

    public void setBillId(Long billId) {
        this.billId = billId;
    }

    public Long getBillId() {
        return billId;
    }

    public void setNeedDebt(BigDecimal needDebt) {
        this.needDebt = needDebt;
    }

    public BigDecimal getNeedDebt() {
        return needDebt;
    }

    public void setFinishDebt(BigDecimal finishDebt) {
        this.finishDebt = finishDebt;
    }

    public BigDecimal getFinishDebt() {
        return finishDebt;
    }

    public void setEachAmount(BigDecimal eachAmount) {
        this.eachAmount = eachAmount;
    }

    public BigDecimal getEachAmount() {
        return eachAmount;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("headerId", getHeaderId())
                .append("accountId", getAccountId())
                .append("inOutItemId", getInOutItemId())
                .append("billId", getBillId())
                .append("needDebt", getNeedDebt())
                .append("finishDebt", getFinishDebt())
                .append("eachAmount", getEachAmount())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
